import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';
import "./style/font/iconfont.css";
import "./style/app.scss";
// 计算并设置根元素的字体大小
function setRem() {
    const rem = document.documentElement.clientWidth / 10;
    document.documentElement.style.fontSize = rem + 'px';
}
// 初始化时调用一次
setRem();
window.addEventListener('resize', setRem);


createApp(App).use(store).use(router).mount('#app')
